package com.lagou.service.impl;

import com.lagou.dao.CodeDao;
import com.lagou.po.CodePO;
import com.lagou.service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @AUTHOR: yb.feng
 * @DATE: 2020/7/1 22:08
 * @DESC:
 */
@Service
public class CodeServiceImpl implements CodeService {

    @Autowired
    private CodeDao codeDao;

    @Override
    public void saveCode(CodePO codePO) {
        codeDao.saveCode(codePO);
    }

    @Override
    public CodePO getCode(String email) {
        return codeDao.getCode(email);
    }
}
